public class test6 {
    static void main() {
        int sum = 0;
        for (int i = 1; i <= 5; i++) {
        sum = sum + i;
            System.out.println(sum);
        }
    }
}
